package com.qdh.controller;

import com.qdh.mapper.BookMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("book")
//@ResponseBody
public class BookController {
    @Autowired
    BookMapper bookMapper;
   /* @RequestMapping("all")
    public List<Book> findAll() {
        return bookMapper.findAll();
    }*/

    @RequestMapping("index")
    public String index() {
        return "index";
    }
}
